package com.ww.scm.valueObject.mat;

import com.ww.scm.entity.mat.FinanceAccount;
import com.ww.scm.entity.pub.Dictionary;
import com.ww.scm.valueObject.ValueObject;


public class FinanceAccountVo extends ValueObject{
	
	
	private String dianId; //门店ID
	private String dianName; //门店名称
	private String financeFormsId; //资金形式ID
	private String financeFormsName; //资金形式名称
	private Double money;// 余款  

	public FinanceAccountVo() {
	}

	public FinanceAccountVo(FinanceAccount financeAccount) {
		super(financeAccount);
		Dictionary dian=financeAccount.getDian();
		if(dian!=null){
			this.dianId=dian.getId();
			this.dianName=dian.getName();
		}
		Dictionary financeForms=financeAccount.getFinanceForms();
		if(financeForms!=null){
			this.financeFormsId=financeForms.getId();
			this.financeFormsName=financeForms.getName();
		} 
		money=financeAccount.getMoney();
	}
	 
	public String getDianId() {
		return dianId;
	}

	public String getDianName() {
		return dianName;
	}

	public String getFinanceFormsId() {
		return financeFormsId;
	}
	
	public String getFinanceFormsName() {
		return financeFormsName;
	}
	
	public Double getMoney() {
		return money;
	}
 
	public void setDianId(String dianId) {
		this.dianId = dianId;
	}

	public void setDianName(String dianName) {
		this.dianName = dianName;
	}

	public void setFinanceFormsId(String financeFormsId) {
		this.financeFormsId = financeFormsId;
	}

	public void setFinanceFormsName(String financeFormsName) {
		this.financeFormsName = financeFormsName;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

}
